#ifndef HOME_H
#define HOME_H

#include <cstdlib>

#include <QObject>
#include <QPixmap>
#include <QSize>
#include <QWidget>

class QPaintEvent;
class QResizeEvent;

class Button;

class Home : public QWidget
{
    Q_OBJECT

signals:
    void start();

public:
    explicit Home(QWidget* pkParent = NULL);
    ~Home();

    QSize minimumSizeHint() const;
    QSize sizeHint() const;

protected:
    Home(const Home&);
    Home& operator =(const Home&);

    void paintEvent(QPaintEvent* pkEvent);
    void resizeEvent(QResizeEvent *pkEvent);

private:
    //------------------------------------------------
    //  Attributes.
    //------------------------------------------------
    // Ratio.
    qreal   m_ratio;

    // Graphics
    QPixmap m_kTitle;
    QPixmap m_kBackground;

    // Start button.
    Button* m_pkStartButton;
};

#endif // HOME_H
